import java.util.*;
public class TestDemo {
    public static void main(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.addFirst(5);
        mySingleList.addFirst(4);
        mySingleList.addFirst(3);
        mySingleList.addFirst(2);
        mySingleList.addFirst(1);
        mySingleList.addIndex(5,99);
        mySingleList.display();
        mySingleList.remove(3);
        mySingleList.display();
    }
}
